Class Controller<TView, TModel>
Controllers are supposed to keep action definitions and they are used as a main component in a UserController. It uses a View and a Model attached.
Declaration
public abstract class Controller<TView, TModel> : Controller<TView> where TView : View<TModel> where TModel : BaseModel, new()
Inheritance: System.Object
-> MatchinghamGames.StockholmCore.Controller -> MatchinghamGames.StockholmCore.Controller<TView>
Derived:
MatchinghamGames.StockholmCore.Demo.UI.Controllers.DemoWinController
Properties
Model
Declaration
public TModel Model { get; set; }
Methods
Initialize()
Initializes the controller
Declaration
protected override void Initialize()
ResetController()
Resets the view back to the initial condition
Declaration
public override void ResetController()
Open()
Opens the view
Declaration
public override void Open()
Close()
Closes the view
Declaration
public override void Close()